// 知识库
import request from "@/api/request";
// 分页查询
export const query_knowledgeBase = (params) => {
  return request({
    url: "/knowledgebase/kbr/selectAll",
    method: "post",
    data: params,
  });
};

// 新增
export const add_knowledgeBase = (params) => {
  return request({
    url: "/knowledgebase/kbr/insert",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 逻辑删除
export const delete_knowledgeBase = (params) => {
  return request({
    url: `/knowledgebase/kbr/delete/${params}`,
    method: "post",
    data: params,
  });
};
// 查询知识库详情
export const query_selectDetails = (params) => {
  return request({
    url: `/knowledgebase/kbr/selectDetails/${params}`,
    method: "post",
    data: params,
  });
};

// 修改知识库
export const update_knowledgeBase = (params) => {
  return request({
    url: "/knowledgebase/kbr/update",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 查询知识库分类
export const query_classification = (params) => {
  return request({
    url: "/knowledgebase/kbc/selectAll",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};
// 查询知识库分类详情
export const query_classiFicationDetails = (params) => {
  return request({
    url: `/knowledgebase/kbc/selectDetails/${params}`,
    method: "post",
    data: params,
  });
};

// 新增知识库分类
export const add_classification = (params) => {
  return request({
    url: "/knowledgebase/kbc/insert",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 逻辑删除知识库分类
export const delete_classification = (params) => {
  return request({
    url: `/knowledgebase/kbc/delete/${params}`,
    method: "post",
    data: params,
  });
};

// 修改知识库分类
export const update_classification = (params) => {
  return request({
    url: "/knowledgebase/kbc/update",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 查询人员
export const query_personList = (params) => {
  return request({
    url: "/knowledgebase/kbr/personList",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 查询单位
export const query_orgList = (params) => {
  return request({
    url: "/knowledgebase/kbr/orgList",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};

// 查询关键词
export const query_keyWordsList = (params) => {
  return request({
    url: "/knowledgebase/kbr/keyWordsList",
    method: "post",
    data: params,
    headers: { "Content-Type": "application/json;charset=UTF-8" },
  });
};
